<template>
  <div>

    <a-form-item label="金额" v-bind="formlayout">
      <a-input
        v-model="money"
        placeholder="请输入充值金额"
      ></a-input>
    </a-form-item>
        <a-button type="primary" @click="recharge">充值</a-button>

  </div>
</template>

<script>
import { getrecharge } from "./axios_http/api";
export default {
  data() {
    return {
        uid:localStorage.getItem("uid"),
      money: null,
            // 表单样式
      formlayout: {
        // 标签
        labelCol: {
          xs: { span: 24 },
          sm: { span: 8 },
        },
        // 文本框
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 8 },
        },
      },
      // 按钮样式
      buttonlayout: {
        // 按钮
        wrapperCol: {
          xs: { span: 24, offset: 0 },
          sm: { span: 16, offset: 8 },
        },
      },
    };
  },
  methods: {
      recharge(){
          window.location.href = "http://192.168.1.65:8000/myapp/payment/?uid="+this.uid+"&price="+this.money
      },
  },
  created() {},
};
</script>
